 // This is a very first login of an user ....... // First get UserType
- drop down (Trainee, Trainer, Training Institute, Company) // Category
- For all type of users ... // Get Mobile Number - For all categories
except Trainee ... Once the phone number is filled ... call ajax and
send verification code ... // Next box ...... Fill the verification code
..... // If type is Institute, Get ( Phone(Not Mandatory), Website(Not
Mandatory), address ) // If type is company, Get ( Phone, Website,
address, Contact Person Name, Contact Person Email ) Submit the form can
call userprofile controller ....... have a hiddenvariable ( firstlogin =
true )

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<script language="javascript" type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-1.9.0.min.js"></script>
<script language="javascript" type="text/javascript"
	src="${pageContext.request.contextPath}/js/common.js"></script>
<script language="javascript" type="text/javascript"
	src="${pageContext.request.contextPath}/js/forgot-password.js"></script>

<form:form
	action="${pageContext.request.contextPath}/newusr/firstlogin?action=save"
	commandName="firstLoginForm" method="POST" id="registration">

	<div class="right-area">
		<!--<div class="left-arrow">
			<img src="${pageContext.request.contextPath}/images/arrow-left.png"
				width="11" height="16" alt="" />
		</div>-->
		<div class="container">
		  <div class="content forms">
		   <div class="three-column-work-area">
			<h2>First Time Login</h2>
			<!-- <div class="tab-content1">
					<h4 class="thanku-green">This will help us improve this course for future delegates.</h4>
				</div>  -->
			<div class="forms-fields">
			<div class="input">
			    <label>User Type:</label>
				<form:select path="userType" cssClass="selbox2" id="sub_group">
					<form:options items="${userTypesMap}" />
				</form:select>
				<span class="errortxt"><form:errors path="userType" /></span>
			</div>
			<div class="input">
			    <label>Category:</label>
				<form:select path="category" cssClass="selbox2" id="sub_group">
					<form:options items="${categoryMap}" />
				</form:select>
				<span class="errortxt"><form:errors path="category" /></span>
			</div>
			<div class="input">
			    <label>State :</label>
				<form:select path="state" cssClass="selbox2" id="sub_group">
					<form:options items="${statesMap}" />
				</form:select>
				<span class="errortxt"><form:errors path="state" /></span>
			</div>
			<div class="input">
			    <label>City :</label>
				<form:select path="city" cssClass="selbox2" id="sub_group">
					<form:options items="${citiesMap}" />
				</form:select>
				<span class="errortxt"><form:errors path="city" /></span>
			</div>
			<div class="input">
			    <label>Mobile :</label>
				<form:input path="mobile" id="mobile"/> &nbsp;&nbsp;<input type="button" value="Verify" onclick="sendVerificationCode()" />
				<span class="errortxt"><form:errors path="mobile" /></span>
			</div>
			<div class="input">
			    <label>Verification Code :</label>
				<form:input path="verificationCode" id="verificationCode"/> 
				<span class="errortxt"><form:errors path="verificationCode" /></span>
			</div>
			<div class="input">
			    <label>Phone :</label>
				<form:input path="phone" id="phone"/> 
				<span class="errortxt"><form:errors path="phone" /></span>
			</div>
			<div class="input">
			    <label>Website :</label>
				<form:input path="website" id="website"/> 
				<span class="errortxt"><form:errors path="website" /></span>
			</div>
			<div class="input">
			    <label>Address :</label>
				<form:input path="address" id="address"/> 
				<span class="errortxt"><form:errors path="address" /></span>
			</div>
			<div class="input">
			    <label>Contact Person Name :</label>
				<form:input path="contactPersonName" id="contactPersonName"/> 
				<span class="errortxt"><form:errors path="contactPersonName" /></span>
			</div>
			<div class="input">
				<label>Contact Person Email :</label>
				<form:input path="contactPersonEmail" id="contactPersonEmail"/> 
				<span class="errortxt"><form:errors path="contactPersonEmail" /></span>
			</div>
			
			
			<div class="submit"><input type="submit" value="Submit" /></div>
			</div>
		    </div>
		  </div>
		</div>
	</div>

</form:form>